add

function add(index: integer, value: T): boolean

Inserts a value at the specified index. Fails if the provided index is out of bounds.

Since

0.6.0

Parameters

index

The index at which to add the element.

value

The value to add.


function add(value: T): boolean

Adds an element to the collection.

Return

true if the element was added, and false if the collection does not allow duplicates and the element is already contained in the collection.

Since

0.6.0

Parameters

value

The element to add.